<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var list = [1,2,3,4];
    console.log(list);


    // list.shift(); 
    list.splice(1,1);

    console.log(list); // [2,3,4]


</script>
</html>